import { baseRequest } from '@/utils/request'
const request = (url, ...arg) => {
    return baseRequest(url, ...arg)
}
export default {
    // 登录
    login(data) {
        return request('/UserLogin', data, 'post')
    },
    // 登出
    logout(data){
        return request('/UserLogout',{
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 修改自己的密码
    modifyYourSelfPwd(data){
        return request('/ModifyYourSelfPwd', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 修改用户列表中用户的密码
    modifyUserPwd(data){
        return request('/ModifyUserPwd', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 获取验证码base64格式
    getValidateCodeStr(data){
        return request('/GetValidateCodeStr', data, 'post')
    },

}